import {request} from '../../common/request.js';
 
export function page(data){
	return request("/cms/show/page", data, "GET");
}

export function get(showId){
	return request("/cms/show/get/"+showId, null, "GET");
}

export function add(show) {
	return request("/cms/show/add", show, "POST");
}

export function getComments(params){
	return request("/cms/showcomment/complex/list", params, "GET");
}

export function addComment(comments) {
	return request("/cms/showcomment/add", comments, 'POST');
}

export function getFavorites(params) {
	//console.log(JSON.stringify("parms:" +params))
	return request("/cms/show/favorites", params, "GET");
}

export function addPartyUpvote(data) {
	return request("/cms/showupvoterecord/add", data, "POST")
}